package cn.springcloud.fix.oauth2.autoconfigure.resource;

import org.springframework.security.oauth2.client.OAuth2RestTemplate;

@FunctionalInterface
public interface UserInfoRestTemplateFactory {

    /**
     * Return the {@link OAuth2RestTemplate} used for extracting user info during
     * authentication if none is available.
     * @return the OAuth2RestTemplate used for authentication
     */
    OAuth2RestTemplate getUserInfoRestTemplate();

}